package datastructure.day04;


/**
 * @Author Gan
 * @Date 2021/5/4 20:58
 * @Description:
 */
public class DemoPreOrder {
    public static void main(String[] args) {
        MyBSTree<Integer> tree = new MyBSTree<>();
        tree.add(30);
        tree.add(20);
        tree.add(40);
        tree.add(10);
        tree.add(25);

        tree.preOrder1();
        System.out.println(tree);

    }
}
